package com.school.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.school.mapper.InformMapper;
import com.school.pojo.Inform;
import com.school.service.InformService;

@Service
@Transactional
public class InformServiceImpl implements InformService{

	@Autowired
	private InformMapper informMapper;
	
	@Override
	public List<Inform> findAll(int page, int pageSize, Inform t) {
		PageHelper.startPage(page,pageSize);
		return informMapper.findAll(t);
	}

	@Override
	public int adds(Inform t) {
		
		return informMapper.adds(t);
	}

	@Override
	public int delbatch(int[] id) {
		
		return informMapper.delbatch(id);
	}


	
	
}
